{% extends 'base_templates/base_user_center.html' %}
{% block right_content %}
		<div class="right_content clearfix">
				<h3 class="common_title2">收货地址</h3>
				<div class="site_con">
					<dl>
						<dt>当前地址：</dt>
                        {% if address %}
						<dd>{{ address.receiver }}（收）{{ address.phone }} {{ address.addr }}</dd>
					    {% else %}
                        <dd>该用户无默认收获地址</dd>
                        {% endif %}
                    </dl>
				</div>
				<h3 class="common_title2">编辑地址（带*的为必填数据）</h3>
				<div class="site_con">
					<form method="post">
                        {% csrf_token %}
						<div class="form_group">
							<label>*收件人：</label>
							<input type="text" name="receiver" value="{{ receiver }}">
						</div>
						<div class="form_group form_group2">
							<label>*详细地址：</label>
							<textarea class="site_area" name="address"></textarea>
						</div>
						<div class="form_group">
							<label>邮编：</label>
							<input type="text" name="zip_code" value="{{ zip_code }}">
						</div>
						<div class="form_group">
							<label>*手机：</label>
							<input type="text" name="phone" value="{{ phone }}">
						</div>

						<input type="submit" name="" value="提交" class="info_submit">
					</form>
                    <p class="error">{{ errmsg }}</p>
				</div>
		</div>
{% endblock right_content %}

